package com.example.oauth2authserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.oauth2authserver.model.User;

/**
 * 用户服务类
 */
public interface IUserService extends IService<User> {

    /**
     * 用过用户名查找用户
     * @param username
     * @return
     */
    User findByUserName(String username);

    User create(String username,String password);
}
